home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / CIncludes / CRMSerialDevices.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-12  |  2.1 KB  |  99 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        CRMSerialDevices.h
  3.  
  4.      Contains:    Communications Resource Manager Serial Device interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1988-1997, 1995, 1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __CRMSERIALDEVICES__
  19. #define __CRMSERIALDEVICES__
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24.  
  25.  
  26.  
  27. #if PRAGMA_ONCE
  28. #pragma once
  29. #endif
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. #if PRAGMA_IMPORT
  36. #pragma import on
  37. #endif
  38.  
  39. #if PRAGMA_STRUCT_ALIGN
  40.     #pragma options align=mac68k
  41. #elif PRAGMA_STRUCT_PACKPUSH
  42.     #pragma pack(push, 2)
  43. #elif PRAGMA_STRUCT_PACK
  44.     #pragma pack(2)
  45. #endif
  46.  
  47.  
  48. enum {
  49.                                                                 /*     for the crmDeviceType field of the CRMRec data structure    */
  50.     crmSerialDevice                = 1,                            /*    version of the CRMSerialRecord below    */
  51.     curCRMSerRecVers            = 1
  52. };
  53.  
  54. /* Maintains compatibility w/ apps & tools that expect an old style icon    */
  55. struct CRMIconRecord {
  56.     long                             oldIcon[32];                /* ICN#    */
  57.     long                             oldMask[32];
  58.     Handle                             theSuite;                    /* Handle to an IconSuite    */
  59.     long                             reserved;
  60. };
  61. typedef struct CRMIconRecord CRMIconRecord;
  62.  
  63. typedef CRMIconRecord *                    CRMIconPtr;
  64. typedef CRMIconPtr *                    CRMIconHandle;
  65. struct CRMSerialRecord {
  66.     short                             version;
  67.     StringHandle                     inputDriverName;
  68.     StringHandle                     outputDriverName;
  69.     StringHandle                     name;
  70.     CRMIconHandle                     deviceIcon;
  71.     long                             ratedSpeed;
  72.     long                             maxSpeed;
  73.     long                             reserved;
  74. };
  75. typedef struct CRMSerialRecord CRMSerialRecord;
  76.  
  77. typedef CRMSerialRecord *                CRMSerialPtr;
  78.  
  79. #if PRAGMA_STRUCT_ALIGN
  80.     #pragma options align=reset
  81. #elif PRAGMA_STRUCT_PACKPUSH
  82.     #pragma pack(pop)
  83. #elif PRAGMA_STRUCT_PACK
  84.     #pragma pack()
  85. #endif
  86.  
  87. #ifdef PRAGMA_IMPORT_OFF
  88. #pragma import off
  89. #elif PRAGMA_IMPORT
  90. #pragma import reset
  91. #endif
  92.  
  93. #ifdef __cplusplus
  94. }
  95. #endif
  96.  
  97. #endif /* __CRMSERIALDEVICES__ */
  98.  
  99.